import http from "./http"

//getDemo
//export const getAuthCodeApi = (params) =>http.get("/url",{params})

//postDemo
// export const passwordLoginApi = (params) =>http.post("/url",params)

//获取新闻news/findByAllNews?page=0&size=6
export const getNews = (params) =>http.get("/news/findByAllNews",{params})

//通过id获取新闻
export const getNewById = (params) =>http.get("/news/queryById",{params})

//获取校庆活动
export const getActivities = (params) =>http.get("/activities/findByActivities",{params})

//微信登录
export const wxloginByCode = (params) =>http.post("/users/wxloginByCode",params)

//微信登录Openid
export const wxloginByNameAndPhone = (params) =>http.post("/users/wxloginByNameAndPhone",params)

//获取轮播图
export const getBannerImageList = (params) =>http.get("/photos/findByRotation",{params})

//获取动态数据
export const getDynamicsApi = (params) =>http.get("/message/findMessage",{params})

//获取动态验证码
export const getVerifyCode = (params) =>http.post("/users/getVerifyCode",params)

//获取查询学生
export const getStudent = (params) =>http.post("/student/selstudent",params)

//获取查询教职工
export const getTeacher = (params) =>http.post("/teacher/selteacher",params)

//获取群组
export const queryAssociation = (params) =>http.get("/association/queryAssociation",{params})

//根据群组Id获取群组
export const queryAssociationById = (params) =>http.get("/association/queryAssociation",{params})

//获取Openid
export const getUserOpenid = (params) =>http.post("/users/getOpenid",params)

//根据userId获取当前用户信息
export const getUserInfo = (params) =>http.get("/associationUserInfo/queryByUserId",{params})

//新增校友会
export const create = (params) =>http.post("/association",params)

//根据userId获取校友通讯录
export const getAssociations = (params) =>http.get("/associationUserInfo/query",{params})

//根据userId获取通讯录
export const getContacts = (params) =>http.get("/gzmuAnnUserContacts/getContacts",{params})

//根据userId获取已经加入的校友会
export const getJoinAssociation = (params) =>http.get("/association/getJoinAssociation",{params})

//加入校友会
export const addUserInfo = (params) =>http.post("/associationUserInfo/addUserInfo",params)

//退出校友会
export const deleteUserInfo = (params) =>http.post("/associationUserInfo/deleteUserInfo",params)

//获取历任领导信息
export const getFindLeaders = (params) =>http.get("/leader/findLeaders",{params})

//获取历任领导详情
export const getFindLeadersById = (params) =>http.get("/leader/findLeadersById",{params})

//获取杰出校友信息
export const getFindByAlumnis = (params) =>http.get("/alumni/findByAlumnis",{params})

//获取杰出校友详情
export const getFindByAlumnisById = (params) =>http.get("/alumni",{params})

//获取部门信息
export const getDepartments = (params) =>http.get("/dept/all",{params})

//查询校友会信息
export const getQueryAssociationById = (params) =>http.get("/association/queryAssociationById",{params})

//查询校友会资讯信息
export const getQueryAlumniNews = (params) =>http.get("/news/newsAssociationLimit",{params})

//校友会成员
export const getQueryUserInfo = (params) =>http.post("/associationUserInfo/queryUserInfo",params)

//校友会相册查询
export const getQueryPhotoByAssId = (params) =>http.get("/associationUserInfo/queryPhotoByAssId",{params})

//校友会图片上传
export const uploadAssociationPhotos = (params) =>http.post("/associationUserInfo/photo",params)

//校友会成员
export const getAssociationUser = (params) =>http.get("/associationUserInfo/associationUser",{params})

//按年份获取学院信息
export const getCollegesByYear = (params) =>http.get("/department/colleges",{params})

//按年份、学院获取专业信息
export const getMajorsByYear = (params) =>http.get("/department/getMajorsList",{params})

//提交认证材料信息
export const submitMaterial = (params) =>http.get("/users/submitMaterial",{params})

//发布信息
export const releaseInformation = (params) =>http.post("/message/create1",params)

//获取已参加的活动
export const getJoinActivity = (params) =>http.get("/activities/join",{params})

//活动详情
export const getActivitiesByid = (params) =>http.get("/activities/byid",{params})

//是否已报名该活动
export const queryActUserInfo = (params) =>http.post("/appUserInfo/queryActUserInfo",params)

//报名该活动
export const addActUserInfo = (params) =>http.post("/appUserInfo/addActUserInfo",params)

//关于我们
export const getAbouts = (params) =>http.get("/gzmuAnnAboutus",{params})

//获取资讯列表
export const getFindByAllNews = (params) =>http.get("/news/findByAllNews",{params})

//获取民大剪影列表
export const getFindByPhotos = (params) =>http.get("/photos/findByPhotos",{params})

//获取更多活动列表
export const getActivityList = (params) =>http.get("/activities/entity",{params})

//根据名称模糊查询活动
export const getActivityByName = (params) =>http.get("/activities/byname",{params})
